﻿using PLCSharp.CoreModel.Prism;
using Prism.Dialogs;
using Prism.Events;
using Prism.Ioc;

namespace PLCSharp.Views.Authority
{
    public class RegisterViewModel : DialogAwareBase
    {
        public RegisterViewModel(IContainerExtension container, IEventAggregator ea, IDialogService dialogService) : base(container, ea, dialogService)
        {
            Model = container.Resolve<LoginModel>();
            Model.RegisterUser.Authority = Authority.Operator;
        }

        public LoginModel Model { get; set; }


    }
}
